package synapses;

import signal.SignalInterface;
import neurons.NeuronInterface;

public class TowardsExteriorSynapse extends SynapseAbstract {

	private NeuronInterface neuronIn;

	public TowardsExteriorSynapse(NeuronInterface inNeuron) {
		inNeuron.growOutGoingSynapse(this);
		neuronIn = inNeuron;
		charged = false;
	}

	@Override
	public void transmit(SignalInterface whatIDeliver) {
		System.out
				.println(toString() + " stocking : " + whatIDeliver.getData());
		data = whatIDeliver.getData();
		charged = true;
	}

}
